package org.simplecrm.controllers.events.propertyeditors;

import org.simplecrm.domain.customer.Customer;

import java.beans.PropertyEditorSupport;

/**
 * Created by oler on 16.09.14.
 */
public class CustomerPropertyEditor extends PropertyEditorSupport {

    @Override
    public void setAsText(String text) throws IllegalArgumentException {

        Customer customer = new Customer();
        customer.setId(Integer.parseInt(text));

        setValue(customer);
    }
}
